import *as types from '../actions/types'

const defaultState = {
  infos: {},
  status: null,
  language: 'cn',
  school_id: false
};

const user = (state = defaultState, action) => {
  switch (action.type) {
    case 'reload' :
      return {
        ...state,
        school_id: action.school_id
      }
    default:
      return state
  }
};

export default user